
from django.urls import path,include,re_path

from . import views

urlpatterns = [

    path(r'list/', views.HostView.as_view({'get':'list', 'post':'create',})),
    re_path(r'list/(?P<pk>\d+)/', views.HostView.as_view({'get':'retrieve', 'delete':'destroy'})),
    #  list/2/
    path(r'categorys/', views.HostCategoryView.as_view()),
    re_path('^host_excel/', views.HostExcelView.as_view()),

    # 文件管理器的路径
    re_path('^file/(?P<pk>\d+)/', views.HostFileView.as_view({'get': 'get_folders','post': 'upload_file', 'delete': 'delete_file'})),

]


